-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add zffs #11026
Add zffs #11026
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11026 +/- ##
=======================================
Coverage 48.37% 48.37%
=======================================
Files 265 265
Lines 42188 42188
Branches 10137 10137
=======================================
Hits 20408 20408
Misses 17703 17703
Partials 4077 4077 Continue to review full report at Codecov.
|
is it appropriate to put it in the ext folder? |
@hongshui3000 lib folder ? |
3260877
to
9064081
Compare
There are many bugs in nffs. What are the bugs in the nffs? Compared with nffs, what are the improvements of znffs? @findlayfeng |
That is known - I have in my backlog to fix them all.
I agree that there is a lot of effort required to fix the bugs, but not really refactoring 100%. Rather something like 20%. Two solution proposals were discuses here: apache/mynewt-nffs#10
We know that NFFS have two serious issue. many other bugs were squashed so far. Another FS will have similar childhood diseases. I prefer to fix NFFS than introduce another FS - even if this mean to refactor a lot (conclusion from discussion mentioned above was that we expected to refactor a lot). But - adding a FS might have sense... I'm not against this path - but I need serious reasons, even for reviewing this. @carlescufi ^^ |
嗯,采用nffs的一个理由是较少的ram占用。这个在小容量设备非常致命。 |
@nvlsianpu nffs在内存中维护一个哈希表,所有的节点都会被添加到哈希表,这是一个在小内存的情况下限制nffs性能的因素。 |
@nvlsianpu I started to pay attention to the problem of nffs. The reason is what you discussed. |
@findlayfeng thanks for this submission.
That way we will be able to compare and have both side-by-side until we decide to take one direction. |
@findlayfeng also please address the outstanding issues in #8837 so we can merge it, then this PR will not have any dependencies. |
I think what @carlescufi proposed (have nffs and znffs side by side as transient steep) have sense (discussed with him off- channel). I look roughly trough the code. At the first sight I saw that you should use zephyr primitives instead of own implementations - |
Thanks for your proposed, I will adjust the name
Thanks for your advice. |
9064081
to
7d108af
Compare
7d108af
to
e2d6eee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify the code style.
Also, in some places there are so many if/for/do/while/switch imbricated (4 or more) that it makes the code hard to read. Usually this can be improved a lot by reversing and exiting from some test, or moving parts of code in dedicated functions, or even using carefully goto.
Different flash devices will rely on different buses, so use different .yaml files. Signed-off-by: Findlay Feng <[email protected]>
e2d6eee
to
8e7ea5e
Compare
Qspi with nrf52840 enabled and Added driver code(block only). Signed-off-by: Findlay Feng <[email protected]>
Updated the dts configuration of pca10056. Added an example of qspi flash controller. Signed-off-by: Findlay Feng <[email protected]>
Add zephyr,flash_map to choose, accept values or lists, default is zephyr,flash zephyr,flash_map is used to generate flash_drivers_map Signed-off-by: Findlay Feng <[email protected]>
generate default_flash_map Signed-off-by: Findlay Feng <[email protected]>
It introduces flash_map subsystem to operate on flash footprint instead of flash_driver. Use flash_area ID index image, not offset. Select FLASH_MAP. Update tests. Signed-off-by: Findlay Feng <[email protected]>
Now flash img uses the flash area id to determine which flash partition is being operated. Update tests. Signed-off-by: Findlay Feng <[email protected]>
update flash img api update mcuboot api Signed-off-by: Findlay Feng <[email protected]>
update flash img api update mcuboot api Signed-off-by: Findlay Feng <[email protected]>
Added flash_map example Signed-off-by: Findlay Feng <[email protected]>
flash_area_get_sector_info_by_offs(), flash_area_get_sector_info_by_idx() Get sector information flash_area_get_sector_count() Get sector information Signed-off-by: Findlay Feng <[email protected]>
todo Signed-off-by: Findlay Feng <[email protected]>
8e7ea5e
to
6d81b40
Compare
What is the status of this pull request? |
looks like orphaned. |
I'm closing this PR as:
|
ZFFS is supposed to be used instead of NFFS.
Reason for creatin another FS is that there are so many serious bugs in NFFS.
While trying to fix them, I found that I was almost going to refactored it.
Why not rewrite one?
It has been roughly completed.
This PR contain the flash_map external extension PR
Since I used the modified flash_map api in #8837, I merged #8837 into it.
Unfinished work.
I think I need some help.